﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SimpleTaskManager.Domain.Abstract;
using SimpleTaskManager.Domain.Entities;

namespace SimpleTaskManager.Domain.Concrete
{
    /// <summary>
    /// A repository containing the projects
    /// </summary>
    public class EFProjectRepository : IProjectRepository
    {
        private EFDbContext context = new EFDbContext();

        /// <summary>
        /// Gets the collection of the projects.
        /// </summary>
        public IQueryable<Project> Projects
        {
            get { return context.Projects; }
        }
    }
}
